<?php
//echo __d ( $local, 'PLEASE_LOGIN' );
//debug( Configure::read('Config.language').'  cccc');
?>
<div class="row">
    <div class="span4 offset4">
        <h3 class="widget-title text-center">Add User</h3>
        <?php
        echo $this->Form->create('User', array(
            'novalidate' => true,
            'inputDefaults' => array(
                'error' => false
            )
        ));
        ?>

        <?php echo $this->Form->error('User.first_name'); ?>
        <div class="input-control text" data-role="input-control">
            <?php
            echo $this->Form->input('User.first_name', array(
                'label' => false,
                'placeholder' => 'Enter first name',
                'maxlength' => '100'
            ));
            ?>
        </div>
        <?php echo $this->Form->error('User.last_name'); ?>
        <div class="input-control text" data-role="input-control">
            <?php
            echo $this->Form->input('User.last_name', array(
                'label' => false,
                'placeholder' => 'Enter last name',
                'maxlength' => '100'
            ));
            ?>
        </div>
        <?php echo $this->Form->error('User.email'); ?>
        <div class="input-control text" data-role="input-control">
            <?php
            echo $this->Form->input('User.email', array(
                'label' => false,
                'placeholder' => 'Enter email',
                'maxlength' => '100'
            ));
            ?>
        </div>
        <?php echo $this->Form->error('User.mobile'); ?>
        <div class="input-control text" data-role="input-control">
            <?php
            echo $this->Form->input('User.mobile', array(
                'label' => false,
                'placeholder' => 'Enter mobile',
                'maxlength' => '100'
            ));
            ?>
        </div>
        <?php echo $this->Form->error('User.position'); ?>
        <div class="input-control text" data-role="input-control">
            <?php
            echo $this->Form->input('User.position', array(
                'label' => false,
                'placeholder' => 'Enter position',
                'maxlength' => '100'
            ));
            ?>
        </div>
        <div data-role="input-control" class="input-control select">
            <?php
            echo $this->Form->input('User.user_group_id', array(
                'options' => $userGroup,
                'default'=>3,
                'label' => false
            ));
            ?>
        </div>

        <center><?php echo $this->Form->submit('SAVE', array('class' => 'button success')); ?></center>
        <?php echo $this->Form->end(); ?> 
    </div>
</div>